home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Online / privoxy-3.0.0-stable / templates / toggle-mini < prev    next >
Text File  |  2002-10-27  |  3KB  |  91 lines

  1. ##########################################################
  2. #
  3. # Toggle Output template for Privoxy.
  4. #
  5. #
  6. # USING HTML TEMPLATES:
  7. # ---------------------
  8. #
  9. # Template files are written win plain HTML, with a few
  10. # additions:
  11. # - Lines that start with a '#' character like this one
  12. #   are ignored
  13. #
  14. # - Each item in the below list of exported symbols will
  15. #   be replaced by dynamically generated text, if they
  16. #   are enclosed in '@'-characters. E.g. The string @version@
  17. #   will be replaced by the version number of Privoxy.
  18. #
  19. # - One special application of this is to make whole blocks
  20. #   of the HTML template disappear if the condition <name>
  21. #   is not given. Simply enclose the block between the two
  22. #   strings @if-<name>start and if-<name>-end@. The strings
  23. #   should be placed in HTML comments (<!-- -->), so the
  24. #   html structure won't be messed when the magic happens.
  25. #   
  26. # USABLE SYMBOLS IN THIS TEMPLATE:
  27. # --------------------------------
  28. #
  29. #  my-ip-addr:
  30. #    The IP-address that the client used to reach this proxy
  31. #  my-hostname:
  32. #    The hostname associated with my-ip-addr
  33. #  admin-address:
  34. #    The email address of the pxoxy's administrator, as configured
  35. #    in the config file
  36. #  default-cgi:
  37. #    The URL for the "main menu" builtin CGI of this proxy
  38. #  menu:
  39. #    List of <li> elements linking to the other available CGIs
  40. #  version:
  41. #    The version number of the proxy software
  42. #  code-status:
  43. #    The development status of the proxy software: "alpha", "beta",
  44. #    or "stable".
  45. #  homepage:
  46. #    The URL of the SourceForge ijbswa project, who maintains this
  47. #    software.
  48. #
  49. # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
  50. # ------------------------------------------------------------------
  51. #
  52. #  unstable:
  53. #    this is an alpha or beta release of the proxy software
  54. #  have-adminaddr-info:
  55. #    An e-mail address for the local Privoxy adminstrator has
  56. #    been specified and is available through the "admin-address"
  57. #    symbol
  58. #  have-proxy-info:
  59. #    A URL for online documentation about this proxy has been
  60. #    specified and is available through the "proxy-info-url"
  61. #    symbol
  62. #  have-help-info:
  63. #    If either have-proxy-info is true or have-adminaddr-info is
  64. #    true, have-help-info is true.  Used to conditionally include
  65. #    a grey box for any and all help info.
  66. #  @if-enabled-display-then@ on @else-not-enabled-display@ off @endif-enabled-display@
  67. #
  68. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  69. <html>
  70.  
  71. <head>
  72.   <title>@if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@ - Privoxy@@my-hostname@</title>
  73.   <meta http-equiv="Content-Style-Type" content="text/css">
  74.   <meta http-equiv="Content-Script-Type" content="text/javascript">
  75.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  76.   <meta name="robots" content="noindex,nofollow">
  77.   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
  78. </head>
  79.  
  80. <body>
  81.   <p class="whiteframed">
  82.     <a href="@default-cgi@" target="_blank">Privoxy</a> is 
  83.     <b>@if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@</b>.
  84.     <br><a href="@default-cgi@toggle?mini=y&set=@if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@"
  85.     >@if-enabled-display-then@[Disable]@else-not-enabled-display@[Enable]@endif-enabled-display@</a> |
  86.     <a href="javascript:window.close();">[Close]</a>
  87.   </p>
  88. </body>
  89. </html>
  90.